/*
 * CLIEntity.h
 *
 *  Created on: Mar 24, 2011
 *      Author: kimi
 */

#include <stdlib.h>
#include <iostream>
#include <fstream>
#include "string.h"
#include <stdio.h>
#include <getopt.h>
#include <unistd.h>
#include <ctype.h>



#ifndef CLIENTITY_H_
#define CLIENTITY_H_


using namespace std;

/*
 *
 */
class CLIEntity {
public:

	enum CLI_COMMAND {
		CLI_INVALID_COMMAND = '0',
		CLI_DISTRITOS_COMMAND = 'd',
		CLI_VOTANTES_COMMAND = 'v',
		CLI_ELECCIONES_COMMAND = 'e',
		CLI_LISTAS_COMMAND = 'l',
		CLI_CARGOS_COMMAND = 'c',
		CLI_CANDIDATOS_COMMAND = 't',
		CLI_VOTAR_COMMAND = 'a',
		CLI_REPORTE_COMMAND = 'r',
		CLI_VOTO_AUTOMATICO_COMMAND = 'y',

		CLI_USUARIO_COMMAND = 'u',
		CLI_PASSWORD_COMMAND = 'p',

		CLI_COMPROBAR_INTEGRIDAD = 'f',

		CLI_ROMPER_RSA = 'w',
		CLI_ENCRIPTAR_ARCHIVO_ADMIN_COMMAND = 'z'
	};

	enum CLI_SUBCOMMAND {
		CLI_INVALID_SUBCOMMAND = '0',
		CLI_INSERTAR_SUBCOMMAND = 'i',
		CLI_VER_SUBCOMMAND = 'x',
		CLI_BORRAR_SUBCOMMAND = 'b',
		CLI_NO_SUBCOMMAND = 'n',
		CLI_REPORTE_ELECCION_SUBCOMMAND = '1',
		CLI_REPORTE_DISTRITO_SUBCOMMAND = '2',
		CLI_REPORTE_LISTA_SUBCOMMAND = '3'
	};

	CLI_COMMAND command;
	CLI_SUBCOMMAND subCommand;
	char* fileName;
	char* recordId;
	char* user;
	char* password;

//	ifstream workFile;
	CLIEntity();
	virtual ~CLIEntity();




private:




};

#endif /* CLIENTITY_H_ */
